package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TVideoReviewMapper;
import com.ruoyi.system.domain.TVideoReview;
import com.ruoyi.system.service.ITVideoReviewService;

/**
 * 视频审核Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-24
 */
@Service
public class TVideoReviewServiceImpl implements ITVideoReviewService 
{
    @Autowired
    private TVideoReviewMapper tVideoReviewMapper;

    /**
     * 查询视频审核
     * 
     * @param reviewId 视频审核主键
     * @return 视频审核
     */
    @Override
    public TVideoReview selectTVideoReviewByReviewId(Long reviewId)
    {
        return tVideoReviewMapper.selectTVideoReviewByReviewId(reviewId);
    }

    /**
     * 查询视频审核列表
     * 
     * @param tVideoReview 视频审核
     * @return 视频审核
     */
    @Override
    public List<TVideoReview> selectTVideoReviewList(TVideoReview tVideoReview)
    {
        return tVideoReviewMapper.selectTVideoReviewList(tVideoReview);
    }

    /**
     * 新增视频审核
     * 
     * @param tVideoReview 视频审核
     * @return 结果
     */
    @Override
    public int insertTVideoReview(TVideoReview tVideoReview)
    {
        tVideoReview.setCreateTime(DateUtils.getNowDate());
        return tVideoReviewMapper.insertTVideoReview(tVideoReview);
    }

    /**
     * 修改视频审核
     * 
     * @param tVideoReview 视频审核
     * @return 结果
     */
    @Override
    public int updateTVideoReview(TVideoReview tVideoReview)
    {
        tVideoReview.setUpdateTime(DateUtils.getNowDate());
        return tVideoReviewMapper.updateTVideoReview(tVideoReview);
    }

    /**
     * 批量删除视频审核
     * 
     * @param reviewIds 需要删除的视频审核主键
     * @return 结果
     */
    @Override
    public int deleteTVideoReviewByReviewIds(Long[] reviewIds)
    {
        return tVideoReviewMapper.deleteTVideoReviewByReviewIds(reviewIds);
    }

    /**
     * 删除视频审核信息
     * 
     * @param reviewId 视频审核主键
     * @return 结果
     */
    @Override
    public int deleteTVideoReviewByReviewId(Long reviewId)
    {
        return tVideoReviewMapper.deleteTVideoReviewByReviewId(reviewId);
    }
}
